
<template>
  <div>
    <div  class="box" ref="dom">我是一个box</div>
    <div  class="box222" ref="dom2">我是一个box222</div>

    <hr/>
    <son ref="s"></son>
  </div>
</template>

<script>
import  son   from  './components/son.vue'
import {ref,onMounted} from  'vue'  
export default {
  components:{
    son
  },
  setup () {
    const dom=ref(null)
    const dom2=ref(null)
    const s=ref(null)

    onMounted(()=>{
      console.log(s,999);
    })
    return {dom,dom2,s}
  }
}
</script>

<style lang="scss" scoped>

</style>